Register connection to DB working