Database connections and small changes