Adding a few more database functions. Nothing tested yet