test work for database