Securing web service communication from custom database connection