Changed from mysql to sqlite db