Error thrown by database select "select * from settings"