some database tests