Fixed Full database interaction and functions for editform