SQL updated for testing purposes