change the sql syntax for active so it works on sqlite
add sqlite support to the travis tests