Fix database plugin