still dealing with database errors