fix to db implm