database: reverted the methods back to functions

I went all retarded a minute ago.