SQL Repository ready, init and close database connection, must be stated somehow