Fix functions when db is created