Fixed some errors occurring while using sample database to install