Fixed Serveral Database Initialization and Calling Problems