JS and SQL exercises