separating database and web server