datebase fix
fix tests