Move scope_database to scope.go