Fixed some syntax errors in DBmanager