fix database parametized