Minor bug fixes and added pi media path to the database