Sql Database implemented.  Still buggy.