Added registration to DB

Added connections and registration to DB