Some wierd error in database.sql made things not work