refactored database connection file to separate jsp