Finished to add errors to database-log-codes.js, and finish to edit functions in mongo_connection.js