Fix database installation