sqlite, beefypic and cleanup

merge me please! :)