bugfix in database and manage page