new ffs database functions