Database connection on process