Converted sqlx to sql and added route for teams