web server and db connection are now less coupled