Added some basic database scaffold functions