Making user database a little bit more flexible