Database Update

Fixing Database functions~