added some database tests