weighted grade, only numerical weights allowed

- fix bug in index.php: float values for grades in db instead of int