database connection, cookie setup