Cleanup and auto install database dependency