Added possibility to serve from files instead of DB for increased performance