No longer passes in functions to database function

fixes #7
also removed transact! macro - don't need