added user database, caused some bugs that have temporary fixes at the moment.