Updated to use SQL Lite