Can now effectively write to the database