remove database lock from queries.insert_tile