Database

minor fixes