Database

More database library coding. I think its finished now. This would be
the alpha, daaajjjeeeuuuhhhmmm