update database class
fuck you, switch statement
improved fetch() slightly