built first alpha of media library based on sqlite