TO REVERT: made some changes so that it works with the current frontend (property length is renamed date) and also do not use the database for now