Solved some errors from DB