Fixed a couple bugs, added function to drop database