databases migrations test queries