getting rid of call to sqlite gem