DB Correction

this code stands for local database works, real test database
creditinals will distribute later.