Fixed File/Dir helpers, improved Sqlite helper