activate socket for database