Mail server with connection to database via JDBC