Input from DB instead of txt