added a sql query that work... but it kinda shucks